﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Producer Example</title> 
<script type="text/javascript" src="../../src/main/resources/zbus.js"></script>   
</head><body>
<script> 

    var broker = new Broker();
    broker.addTracker("localhost:15555");

    broker.ready(function () {
        var p = new Producer(broker);
        var topic = "hong6";
        p.declare(topic)
        var req = { topic: topic, body: 'published from javascript' };
        p.publish(req)
    })

</script></body></html>
